package cn.sofwin.day0107.homework;

public class Buy {
    public static void main(String[] args) {
        int rooster =0;

        while(rooster <=20){
            int   hen =0;
            while(hen<=33){
                int chicken =0;
                while(chicken<=300){
                    if((rooster+hen+chicken ==100) && (rooster*5+hen*3+chicken/3 ==100) && chicken%3==0){
                        System.out.println( "公鸡："+rooster+"母鸡："+hen+"小鸡"+chicken);
                    }
                    chicken++;
                }
                hen++;
            }
            rooster++;
        }

    }


}
